home *** CD-ROM | disk | FTP | other *** search
/ SuperHack / SuperHack CD.bin / CODING / CPP / METAKIT.ZIP / EXAMPLES / CATRECV / TREEDLG.H < prev   
Encoding:
C/C++ Source or Header  |  1996-12-09  |  1.3 KB  |  53 lines

  1. //    treedlg.h  -  catalog tree display sample code
  2. //
  3. //    This is a part of the MetaKit library.
  4. //    Copyright (c) 1996 Meta Four Software.
  5. //    All rights reserved.
  6. /////////////////////////////////////////////////////////////////////////////
  7.  
  8. class CTreeDialog : public CDialog
  9. {
  10. // Construction
  11. public:
  12.     CTreeDialog (CFile& file_);
  13.  
  14. // Dialog Data
  15.     //{{AFX_DATA(CTreeDialog)
  16.     enum { IDD = IDD_TREE_DIALOG };
  17.     CListCtrl    m_fileList;
  18.     CTreeCtrl    m_dirTree;
  19.     //}}AFX_DATA
  20.  
  21.  
  22. // Overrides
  23.     // ClassWizard generated virtual function overrides
  24.     //{{AFX_VIRTUAL(CTreeDialog)
  25.     protected:
  26.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  27.     //}}AFX_VIRTUAL
  28.  
  29. // Implementation
  30. protected:
  31.     virtual void OnCancel();
  32.     virtual void PostNcDestroy();
  33.  
  34.     // Generated message map functions
  35.     //{{AFX_MSG(CTreeDialog)
  36.     virtual BOOL OnInitDialog();
  37.     afx_msg void OnSize(UINT nType, int cx, int cy);
  38.     afx_msg void OnSelchangedDirTree(NMHDR* pNMHDR, LRESULT* pResult);
  39.     //}}AFX_MSG
  40.     DECLARE_MESSAGE_MAP()
  41.  
  42. private:
  43.     void RecalcLayout();
  44.     void SetupDirTree();
  45.  
  46.     c4_Storage _storage;
  47.     c4_View _dirs;
  48.     CPtrArray _treeHandles;
  49. };
  50.  
  51. /////////////////////////////////////////////////////////////////////////////
  52. // $Id: treedlg.h,v 1.2 1996/12/04 14:49:54 jcw Exp $
  53.